﻿@{
    ViewBag.Title = "SiteMap";
}
@using Meek.HtmlHelpers
<section class="section-Container">
    <div class="pageTitle"> <img width="150" height="75" alt="about" src="@Url.Content("~/Content/images/pageTitleSiteMap.jpg")"> 
    </div>
    <div class="body-page"> 
       @{Html.RenderRoute("Partial/SiteMap");}
       <br />
      </div>
  </section>
   @section JavaScript
  {
  <script type="text/javascript">
      $('a').live('click', function () {
          if ($(this).text() == "Transact Residential Plans") {
             
              var selectedplan = $(this).text();
              $.cookie("MainCookie", null, { path: '/', expires: -5 });
              var obj = 1+'|'+1+'|'+selectedplan;
              $.cookie("MainCookie",obj,{ path: '/', expires: 1 });
          }
          else if ($(this).text() == "Transact Business Plans") {
              
              var selectedplan = $(this).text();
              $.cookie("MainCookie", null, { path: '/', expires: -5 });
              var obj = 2+'|'+2+'|'+ selectedplan;
              $.cookie("MainCookie",obj,{ path: '/', expires: 1 });
          }
          else if ($(this).text() == "National ADSL2+ Plans") {


              var selectedplan = $(this).text();
              $.cookie("MainCookie", null, { path: '/', expires: -5 });
              var obj = 3+'|'+3+'|'+selectedplan;
              $.cookie("MainCookie",obj,{ path: '/', expires: 1 });
          }
          else if ($(this).text() == "National Naked DSL") {
              var selectedplan = $(this).text();
              $.cookie("MainCookie", null, { path: '/', expires: -5 });
              var obj = 4+'|'+4+'|'+selectedplan;
              $.cookie("MainCookie",obj,{ path: '/', expires: 1 });
          }
          
      });
  </script>
  }
